package com.common.converter;

import com.common.entity.evaluate.CheckEvaluateEntity;
import com.common.entity.judicialcheck.JudicialTargetTypeSumCheckEntity;
import com.common.excel.excelinfo.CheckEvaluateExcelInfo;
import com.common.requestvo.evaluate.CheckEvaluateReqVo;
import com.common.requestvo.judicialcheck.JudicialTargetTypeSumCheckReqVo;
import com.common.vo.evaluate.CheckEvaluateVo;
import com.common.vo.judicialcheck.JudicialTargetTypeSumCheckVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

/**
 * @author johnny
 * @create 2020-07-13 下午5:04
 **/
@Mapper
public interface JudicialTargetTypeSumCheckConverter {

    JudicialTargetTypeSumCheckConverter INSTANCE = Mappers.getMapper(JudicialTargetTypeSumCheckConverter.class);


    @Mappings({
            @Mapping(source = "createTime", target = "createTime", dateFormat = "yyyy-MM-dd HH:mm:ss"),
            @Mapping(source = "updateTime", target = "updateTime", dateFormat = "yyyy-MM-dd HH:mm:ss"),
    })
    JudicialTargetTypeSumCheckVo domain2vo(JudicialTargetTypeSumCheckEntity judicialTargetTypeSumCheckEntity);

    @Mappings({
            @Mapping(source = "createTime", target = "createTime", dateFormat = "yyyy-MM-dd HH:mm:ss"),
            @Mapping(source = "updateTime", target = "updateTime", dateFormat = "yyyy-MM-dd HH:mm:ss"),
    })
    JudicialTargetTypeSumCheckEntity vo2domain(JudicialTargetTypeSumCheckReqVo judicialTargetTypeSumCheckReqVo);


}